package lt.hsu.product.thr;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lt.hsu.web.ErrorCode;

@Getter
@AllArgsConstructor
public enum ProductError implements ErrorCode {

    PRODUCT_EXISTS(10000, "产品已经存在"),
    SAVE_PRODUCT_FAILURE(10001, "保存产品失败"),
    PRODUCT_NOT_EXISTS(10002, "产品不存在"),
    DELETE_PRODUCT_FAILURE(10003, "删除产品失败"),
    UPDATE_PRODUCT_FAILURE(10004, "更新产品失败"),
    ;
    private final long code;

    private final String message;
}
